package com.doxiaopu.students.organization.entity;

import com.doxiaopu.students.component.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
@ApiModel(description= "协会信息")
public class Organization extends BaseEntity {
    private static final long serialVersionUID = 506276920386137332L;
    @ApiModelProperty(value = "组织id")
    private Integer id; //  组织id
    @ApiModelProperty(value = "（1-社团会长，2-社联会长）")
    private Integer identity;   // （1-社团会长，2-社联会长）
    @ApiModelProperty(value = "学校")
    private String shcool;  //学校
    @ApiModelProperty(value = "协会名")
    private String organization;//协会名
    @ApiModelProperty(value = "申请人")
    private String applicantName;//申请人
    @ApiModelProperty(value = "手机号")
    private String phone;//手机号
    @ApiModelProperty(value = "上级id")
    private String superiorsId;//上级id
    @ApiModelProperty(value = "组织id主键：")
    private String massOrganizationId; //组织id主键：
    @ApiModelProperty(value = "用户id（外键）")
    private String tUserId ;//用户id（外键）
    @ApiModelProperty(value = "申请状态（(0-未审核；1-审核)）")
    private Integer applicationStatus; //申请状态（(0-未审核；1-审核)）
    @ApiModelProperty(value = "社联头像")
    private String avatar;//社联头像
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;//创建时间
    @ApiModelProperty(value = "余额")
    private Integer balance;//余额
    @ApiModelProperty(value = "累计返利订单")
    private Integer cumulativeOrder; //累计返利订单

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }

    public String getShcool() {
        return shcool;
    }

    public void setShcool(String shcool) {
        this.shcool = shcool;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public String getApplicantName() {
        return applicantName;
    }

    public void setApplicantName(String applicantName) {
        this.applicantName = applicantName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSuperiorsId() {
        return superiorsId;
    }

    public void setSuperiorsId(String superiorsId) {
        this.superiorsId = superiorsId;
    }

    public String getMassOrganizationId() {
        return massOrganizationId;
    }

    public void setMassOrganizationId(String massOrganizationId) {
        this.massOrganizationId = massOrganizationId;
    }

    public String gettUserId() {
        return tUserId;
    }

    public void settUserId(String tUserId) {
        this.tUserId = tUserId;
    }

    public Integer getApplicationStatus() {
        return applicationStatus;
    }

    public void setApplicationStatus(Integer applicationStatus) {
        this.applicationStatus = applicationStatus;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public Date getCreatedTime() {
        return createdTime;
    }

    @Override
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    public Integer getCumulativeOrder() {
        return cumulativeOrder;
    }

    public void setCumulativeOrder(Integer cumulativeOrder) {
        this.cumulativeOrder = cumulativeOrder;
    }

    @Override
    public String toString() {
        return "Organization{" +
                "id=" + id +
                ", identity=" + identity +
                ", shcool='" + shcool + '\'' +
                ", organization='" + organization + '\'' +
                ", applicantName='" + applicantName + '\'' +
                ", phone='" + phone + '\'' +
                ", superiorsId='" + superiorsId + '\'' +
                ", massOrganizationId='" + massOrganizationId + '\'' +
                ", tUserId='" + tUserId + '\'' +
                ", applicationStatus=" + applicationStatus +
                ", avatar='" + avatar + '\'' +
                ", createdTime=" + createdTime +
                ", balance='" + balance + '\'' +
                ", cumulativeOrder=" + cumulativeOrder +
                '}';
    }
}
